function maxComStr(s1, s2) {
    let str = ''
    for (let i = 0; i < s1.length; i++) {
        if (s1[i] == s2[i]) {
            str += s1[i]
        } else {
            return str
        }
    }
    return str

}